
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <%@include file="includes/header2.jsp" %>



        <div id="mainbody_right">
            <h1>List of Orders currently in Database</h1>

            <table id="companyListTable" border="3">
            <tr >
                <th>Order ID</th>
                <th >Ordered Item</th>
                <th >Date Of Order</th>
                <th >Due Date</th>
                 <th>Company </th>
                  <th>Customer Name </th>
            </tr>
            <c:forEach var="order" begin="0" items="${requestScope.orderList}">
            <tr>
                <td>${order.ord_id}&nbsp;&nbsp;</td>
                <td>${order.ordereditem}&nbsp;&nbsp;</td>
                <td>${order.dateoforder}&nbsp;&nbsp;</td>
                <td>${order.duedate}&nbsp;&nbsp;</td>
                <td>${order.company}&nbsp;&nbsp;</td>
                <td>${order.customer.givenname}&nbsp;&nbsp;</td>
            </tr>

            </c:forEach>

            </table>

                 <div class="cleaner">&nbsp;</div>
        </div>

    <%@include file="includes/footer.jsp" %>

</html>